﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using TVShows_EF5.Models;

namespace TVShows_EF5.Controllers
{
    public class HomeController : Controller
    {
        private TVShowsContext db = new TVShowsContext();

        //
        // GET: /Home/

        public ActionResult Index()
        {
            var lista = db.TVShows.ToList();
            return View(model: lista);
        }

    }
}
